home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscArrowButtonPalette / MiscArrowButton.subproj / MiscArrowButton.h < prev    next >
Encoding:
Text File  |  1994-10-01  |  1.7 KB  |  52 lines

  1. /******************************************************************
  2.   CLASS:            MiscArrowButton
  3.   INHERITS FROM:     Button
  4.   PROGRAMMER:        Todd Thomas, Copyright 1994 by Todd Thomas 
  5.   START DATE:        Jan 16, 1993
  6.   LAST CHANGED:        - 
  7.   VERSION:            1.0
  8.  
  9.   A recreation of that button from Websters.app (in Preferences).
  10.   This class is just a control to display the ArrowButtonCell. It
  11.   has the same relationship with ArrowButtonCell, as Button and 
  12.   ButtonCell. I only added my own designated initializer, and 
  13.   overrode all the init methods to call it. I also had 
  14.   to add a class method to set the cell class to ArrowButtonCell.
  15.  
  16.   CHANGES
  17.      1. Added setArrowAlignment/arrowAlignment methods instead of using
  18.      the already defined setAlignment/alignment methods. 
  19.  
  20.   This object is included in the MiscKit by permission from the author
  21.   and its use is governed by the MiscKit license, found in the file
  22.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  23.   for a list of all applicable permissions and restrictions.
  24.  *******************************************************************/
  25.  
  26. #import <appkit/appkit.h>
  27.  
  28.  
  29. @interface MiscArrowButton : Button
  30. {
  31. }
  32.  
  33. + initialize;
  34. + setCellClass: classId;
  35.  
  36. - init;
  37. - initFrame: (const NXRect *)frameRect;
  38. - initFrame:(const NXRect *)frameRect title:(const char *)aString
  39.         tag:(int)anInt target:anObject action:(SEL)aSelector
  40.         key:(unsigned short)charCode enabled:(BOOL)flag;
  41. - initFrame:(const NXRect *)frameRect title:(const char *)aString
  42.         altTitle: (const char *)altString tag:(int)anInt 
  43.         target:anObject action:(SEL)aSelector
  44.         key:(unsigned short)charCode enabled:(BOOL)flag;    
  45.  
  46. - setArrowAlignment: (int)alignment;
  47. - (int)arrowAlignment;    
  48.  
  49. @end
  50.  
  51.  
  52.